package PAT;

import java.util.Scanner;

public class PAT1011 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a,b,c;
        double tt = 1.0;
        while (scanner.hasNext()){
            a = scanner.nextDouble();
            b = scanner.nextDouble();
            c = scanner.nextDouble();
            if(a>b && a>c){
                System.out.print("W ");
                tt *= a;
            }
            if(b>a && b>c){
                System.out.print("T ");
                tt *= b;
            }
            if(c>a && c>b){
                System.out.print("L ");
                tt *= c;
            }
        }

        System.out.print((tt-1)*0.65*2);

    }
}
